package grp.test.dao;

import grp.test.pojo.Reserve;
import grp.test.pojo.ReserveKey;

import java.util.List;

public interface ReserveMapper {
    int deleteByPrimaryKey(ReserveKey key);

    int insert(Reserve record);

    int insertSelective(Reserve record);

    Reserve selectByPrimaryKey(ReserveKey key);

    //通过userId查询预定图书列表
    List<Reserve> selectByUserId(Integer userId);

    int updateByPrimaryKeySelective(Reserve record);

    int updateByPrimaryKey(Reserve record);
}